<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
</head>
<body style="border: 0px; margin: 0px; padding: 0px;width: 100%;height: 100%">
<div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="width:100%;">
        <tr>
        	<td style="width:100%;">
                <span style="margin-left:10px;">组名称(模糊)：</span><input id="s_name" class="mini-textbox" emptyText="组名称(模糊)" style="width:150px;margin-right:10px;" />
                <span>日期：</span><input id="start_time" name="startTime" class="mini-datepicker" style="width:160px;" ondrawdate="onDrawDate" allowInput="false" format="yyyy-MM-dd" />
            	<span style="color: #f00;">注：默认查询当天00:00~23:59数据</span>
            </td>
            <td style="white-space:nowrap;">
               	<a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>
           	</td>
        </tr>
    </table>
</div>
<div class="mini-fit" >
	<div id="datagrid1" class="mini-datagrid " idField="id" pageSize="20"
		url="nuclear_group_check.do" 
		style="width:100%;height:100%;" allowCellSelect="true" multiSelect="true">
		<div property="columns">
			<div type="indexcolumn" headerAlign="center">#</div>
			<div field="platformName" width="100" headerAlign="center" renderer="onActionRenderer" align="center">中心</div>
			<div field="groupName" width="100" headerAlign="center" align="center">组</div>
			<div field="allOrderNum" width="100" headerAlign="center" align="center">核单总数</div>
			<div field="orderNum" width="100" headerAlign="center" align="center">下单数</div>
			<div field="percentage" width="100" headerAlign="center" align="center">完成百分比</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	mini.parse();
	var grid = mini.get("datagrid1");
	grid.reload();
	
	function search(){
		var name = mini.get("s_name").getValue();
	    var startTime = mini.get("start_time").getFormValue();
	    grid.load({ name: name,
	    	startTime: startTime
	    });
	}
	
	function onDrawDate(e) {
        var date = e.date;
		var d = new Date();
        if (date.getTime() > d.getTime()) {
            e.allowSelect = false;
        }
    }
	
</script>
</body>
</html>